package com.liyy.platform.controller;

import com.liyy.platform.service.ContractProxySupplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/ribbon/contractProxySupply")
public class ContractProxySupplyController {

    @Autowired
    private ContractProxySupplyService contractProxySupplyService;

    @RequestMapping("/saveContractProxySupply")
    public void saveContractProxySupply(){
        contractProxySupplyService.saveContractProxySupply();
    }

//代理合同的查询及分页
    @RequestMapping("/getContractProxySupplyList")
    public List getContractProxySupplyList(String goodsName, String goodsBrand, String goodsAttr,
                                                 @RequestParam(defaultValue = "1") int pageNo, @RequestParam(defaultValue = "10") int pageSize ){
      return contractProxySupplyService.getContractProxySupplyList(goodsName,goodsBrand,goodsAttr,pageNo,pageSize);
    }

}
